<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var arr=["xiaoli","xioazhang",'xiaowang']
        // var [x,y,z]=arr;
        // console.log(x,y,z);
        // var arr2=[1,2,[3,4,[5]]]
        // console.log(arr2[2][2][0]);
        // var [a,b,[c,d,[e]]]=arr2;
        // console.log(e);
        var obj={
            name:"xiaozhang",
            age:24,
            location: {
                province:"hubei",
                city:"wuhan"

            },
            hobby:[111,222,333]

        }
        var {
            name,
            age,
            location: {
                province,
                city,

            },
            hobby:[m,k,n]
        }= obj
        console.log(name,age,province,city,m,k,n);

    </script>
    
</body>
</html>